package lab02.test25;

import lab02.text16.Arithmetic;

import java.util.Scanner;

public class Test25 {
    public static void main(String[] args) {
        int a = 0;
        int b = 0;
        Scanner scanner = new Scanner(System.in);
        //循环while (true)

            System.out.println("please input 1st int");
            a=scanner.nextInt();
            System.out.println("please input 2nd int");
            b=scanner.nextInt();

            int c=0;
            try{
                c=a/b;
            }catch(ArithmeticException e){
                System.out.println("除数为0");
            }
            System.out.println(a+"/"+b+"="+c);
        }
    }

